filter Not Null To Option
Returns Some containing the same Right if its value is not null. Otherwise returns None.
Return
Some containing the same Right if its value is not null. Otherwise returns None.
Since
1.3
fun <L, R> LeftProjection<L?, R>.filterNotNullToOption(): Option<Either<L, R>>
Content copied to clipboard
Returns Some containing the same Left if its value is not null. Otherwise returns None.
Return
Some containing the same Left if its value is not null. Otherwise returns None.
fun <L, R> RightProjection<L, R?>.filterNotNullToOption(): Option<Either<L, R>>
Content copied to clipboard
Returns Some containing the same Right if its value is not null. Otherwise returns None.
Return
Some containing the same Right if its value is not null. Otherwise returns None.